import java.io.IOException;

import IC.Compiler;

public class Regression {
	
	public static void main(String[] args) {
		int i = 1;
		for (String str : files){
			String[] myArgs = {"C://compilation//IC_COMPILER//test//PA3//"+str,"-LC://compilation//IC_COMPILER//test//libic.sig"/*, "-print-ast", "-print-tokens"*/};
			System.err.println(i++ + ": " + str);			
			Compiler.main(myArgs);
		}
	}

	static String[] files = {"error_break.ic"
			,"error_continue.ic"
			,"error_double_dec_var.ic"
			,"error_field_double_dec.ic"
			,"error_forward_dec_var.ic"
			,"error_forward_extension.ic"
			,"error_overloading.ic"
			,"error_return_1.ic"
			,"error_return_2.ic"
			,"error_scope_1.ic"
			,"error_scope_2.ic"
			,"error_self_extension.ic"
			,"error_shadowing.ic"
			,"error_static_call_to_virtual_method.ic"
			,"error_three_mains.ic"
			,"error_two_mains.ic"
			,"error_two_mains_args_name.ic"
			,"error_type_call_1.ic"
			,"error_type_call_2.ic"
			,"error_type_call_3.ic"
			,"error_type_call_4.ic"
			,"error_type_comparison.ic"
			,"error_type_complex_1.ic"
			,"error_type_dimensions.ic"
			,"error_type_method_literal.ic"
			,"error_type_operation.ic"
			,"error_type_operation_1.ic"
			,"error_type_operation_2.ic"
			,"error_type_operation_3.ic"
			,"error_type_operation_4.ic"
			,"error_type_operation_5.ic"
			,"error_type_operation_7.ic"
			,"error_type_simple_1.ic"
			,"error_type_simple_2.ic"
			,"error_type_simple_3.ic"
			,"error_type_simple_4.ic"
			,"error_type_super_in_sub.ic"
			,"example_priorities.ic"
			,"example1.ic"
			,"example2.ic"
			,"p1.ic"
			,"p2.ic"
			,"p3.ic"
			,"p4.ic"
			,"p5.ic"
			,"p6.ic"
			,"p7.ic"
			,"p8.ic"
			,"p9.ic"};
}
